# umask
umask 022

# prompt
PS1=$'\001\r''$(d=${PWD/$HOME/\~} d=${d##*/} ;\
print "\e[0;32m$d\e[0;37m \$ \e[0m")'

# history
HISTSIZE=3000
HISTFILE=~/.mksh-history

# bindings
bind ^L=clear-screen
bind ^Z=redraw
bind ^V=edit-line
bind ^K=up-history
bind ^J=down-history

# paths
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:$HOME/.bin:$HOME/.local/bin
MANPATH=/usr/share/doc:/usr/share/man:/usr/local/share/man/:$HOME/.local/share/man

CHARSET=UTF-8
SHELL=/bin/mksh
PAGER=less
EDITOR=vim
VISUAL=vim
BROWSER=palemoon
eval $(dircolors -b ~/.dircolors)

export PATH MANPATH CHARSET SHELL PAGER EDITOR VISUAL

# fff
export FFF_FAV1=~/Documents/Linux

# colorful man pages
export LESS_TERMCAP_mb=$'\e[1;31m'     # begin bold
export LESS_TERMCAP_md=$'\e[1;32m'     # begin blink
export LESS_TERMCAP_me=$'\e[0m'        # reset bold/blink
export LESS_TERMCAP_so=$'\e[01;35m'    # begin reverse video
export LESS_TERMCAP_se=$'\e[0m'        # reset reverse video
export LESS_TERMCAP_us=$'\e[4;33m'     # begin underline
export LESS_TERMCAP_ue=$'\e[0m'        # reset underline

# colors on tty
if [ "$TERM" = "linux" ]; then
    echo -en "\e]P02D333D" #nord background
    echo -en "\e]P82D333D" #darkgrey
    echo -en "\e]P1BF616A" #pink
    echo -en "\e]P9BF616A" #pink
    echo -en "\e]P281A1C1" #lightgreen
    echo -en "\e]PAA3BE8C" #green
    echo -en "\e]P3666666" #brown
    echo -en "\e]PBEBCB8B" #yellow
    echo -en "\e]P481A1C1" #darkblue
    echo -en "\e]PC81A1C1" #blue
    echo -en "\e]P5706c9a" #darkmagenta
    echo -en "\e]PD826ab1" #magenta
    echo -en "\e]P688C0D0" #darkcyan
    echo -en "\e]PED8DEE9" #cyan
    echo -en "\e]P7D8DEE9" #lightgrey
    echo -en "\e]PFD8DEE9" #white
    clear #for background artifacting
fi

# import function and aliases
source $HOME/.functions
